// 外层返回类型
export interface returnPromise<T> {
  code: number
  data: T
  msg?: string
  sysBit?: any
  access_token?: any
}

export interface LoginData {
  /**
   * token
   */
  Authorization: string
  /**
   * 用户id
   */
  userId: string

  /**
   * appCode
   */
  appCode: string
}
/*
 * 角色
 */
export interface Role {
  searchValue?: any
  createBy?: any
  createTime?: any
  updateBy?: any
  updateTime?: any
  remark?: any
  params: any
  roleId: number
  typeIds?: any
  roleType?: any
  roleName: string
  userName?: any
  roleKey: string
  roleSort: string
  dataScope: string
  menuCheckStrictly: boolean
  deptCheckStrictly: boolean
  status: string
  vueSchedule?: any
  delFlag?: any
  flag: boolean
  menuIds?: any
  deptIds?: any
  admin: boolean
}

export interface FamilyendUser {
  id?: any
  cstname?: any
  pcstname?: any
  currentstatus?: any
  groupid?: any
  type?: any
  createdate?: any
  updatedate?: any
  industrytype?: any
  sshyname?: any
  xzjb?: any
  regionid?: string
  province?: any
  regionName: string
  city?: any
  district?: any
  town?: any
  village?: any
  building?: any
  xxdz?: any
  userCount?: any
}
/*
 * 联系人信息
 */
export interface ContactsInfo {
  id: number
  name: string
  mobilePhone: string
  status: number
  yn: number
  userId: number
}
/**
 * 用户信息
 */
export interface User {
  searchValue?: any
  createBy: string
  createTime: string
  updateBy?: any
  updateTime?: any
  remark?: any
  params: any
  userId: number
  deptId?: any
  regionbIds?: any
  areaIds: any
  deptName?: any
  userType: string
  userName: string
  nickName: string
  email: string
  phonenumber: string
  sex: string
  avatar: string
  password: string
  status: string
  delFlag: string
  loginIp: string
  province?: any
  provinceName?: string
  city?: any
  cityName?: string
  county?: any
  countyName?: string
  company?: any
  industry?: any
  loginDate?: any
  roles: Role[]
  roleIds?: any
  menuIds?: any
  roleName?: any
  customerUnit?: any
  userUnit?: any
  customerUnitName?: any
  userUnitName?: any
  familyVOS?: any
  familyendUsers: FamilyendUser[]
  endTime?: any
  startTime?: any
  roleId?: any
  orgId?: any
  contactsInfos: ContactsInfo[]
  admin: boolean
}
/*
 * 应用以及菜单列表
 */
export interface MenuList {
  id: number
  parentId: number
  label: string
  component?: any
  icon: string
  appName?: any
  updateTime?: any
  children: MenuList[]
}
/*
 * 登录返回的用户信息
 */
export interface UserInfoTypes {
  TreeSelect: MenuList[]
  level: string
  regionName: string
  user: User
  region: string
  menuList?: MenuList[]
  vision: string
}
